package com.hellobike.haxing.modules.shop.service;

import com.hellobike.haxing.modules.shop.entity.ShopAccount;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 * @Description: 提货点账单
 * @Author: haxing-boot
 * @Date:   2020-02-08
 * @Version: V1.0
 */
public interface IShopAccountService extends IService<ShopAccount> {
    /**
     * 添加收入
     * @param shopId 提货点id
     * @param amount 金额
     * @param status 状态
     * @Param reason 原因
     */
    void addIncome(Long shopId, BigDecimal amount, Integer status, String reason);

    /**
     * 审核拒绝
     * @param applyId
     */
    void updateRejectSubStatus(Long applyId);
    /**
     * 提现成功
     * @param applyId
     */
    void updateWithSuccessSubStatus(Long applyId);
}
